package com.xaicode.locker.JavaSJMS.three.BehaviorMode.Command;

/**
 * 实际业务
 * @author Locker
 * 	  <br> 2017年5月6日 上午9:19:37
 * @version v1.0
 */
public class MyCommand implements Command {

	// 持有命令执行者
	private Receiver receiver;
	
	public MyCommand(Receiver receiver) {
		this.receiver = receiver;
	}
	
	@Override
	public void execute() {
		// 执行者执行命令
		receiver.action();
	}
	
}
